//
//  WeekCollectionViewCell.m
//  TableTest
//
//  Created by 众拳科技 on 2017/11/13.
//  Copyright © 2017年 众拳科技. All rights reserved.
//

#import "WeekCollectionViewCell.h"

@implementation WeekCollectionViewCell

-(id)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        WeekDayCollectionView *weekDayCollectionView = [[WeekDayCollectionView alloc] initWithFrame:CGRectZero];
        
        [self.contentView addSubview:weekDayCollectionView];
        
        self.weekDayCollectionView = weekDayCollectionView;
        
        [weekDayCollectionView mas_remakeConstraints:^(MASConstraintMaker *make) {
            
            make.edges.mas_equalTo(self.contentView);
        }];
        
    }
    
    return self;
}

-(void)setBetwCount:(NSInteger)betwCount{
    
    _betwCount = betwCount;
    
    self.weekDayCollectionView.betwCount = betwCount;
}


-(void)setTeachDict:(NSMutableDictionary *)teachDict{
    
    _teachDict = teachDict;
    
    self.weekDayCollectionView.teachDict = teachDict;
}


-(void)setHasTeachDict:(NSMutableDictionary *)hasTeachDict{
    
    _hasTeachDict = hasTeachDict;
    
    self.weekDayCollectionView.hasTeachDict = hasTeachDict;
}


-(void)setFirstDayOfWeek:(NSDate *)firstDayOfWeek{
    
    _firstDayOfWeek = firstDayOfWeek;
    
    self.weekDayCollectionView.firstDayOfWeek = firstDayOfWeek;
}

-(void)setGridType:(NSString *)gridType{
    
    _gridType = gridType;
    
    self.weekDayCollectionView.gridType = gridType;
}
@end
